using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TalentSacrifice : TalentBasic 
{
    public int coins;
    public bool change;
    public override void OnClick()
    {
        if (PlayerData.coninsfortalent > 0)
        {
            if (change)
            {
                PlayerData.damageratio += 0.2f * PlayerData.coinsforskill;
                PlayerData.coinsforskill = 0;
            }
            PlayerData.coinsforskill += coins;
            base.OnClick();
        }
    }
}
